package com.ztom.agent;

import com.ztom.agent.asm.LinkTraceTransformer;

import java.lang.instrument.Instrumentation;

/**
 * @author ZhangTao
 */
public class AgentMain {

    public static void premain(String agentArgument, Instrumentation instrumentation) {
        if (TraceBootstrap.getInstance().initial()) {
            instrumentation.addTransformer(new LinkTraceTransformer());
        }
    }
}
